<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../vue2.2.js"></script>
</head>
<body>
<div id="app">
    <runoob></runoob>
</div>

<script>
    Vue.component('runoob',{
        template: '<h1>这是一个模块</h1>'
    });
    new Vue({
        el: '#app'
    })
</script>
</body>
</html>